import instance from '../index'
// 注册账号
export const createUser = (data) => {
  return instance({
    url: '/appUser/register',
    method: 'post',
    data
  })
}
// 登陆
export const login = (data) => {
  return instance({
    url: '/appUser/login',
    method: 'post',
    data
  })
}

// 获取用户信息
export const getUserInfo = () => {
  return instance({
    url: '/appUser/getUserInfo',
    method: 'get'
  })
}
